//
//  TestLua.m
//  HeroNuts
//
//  Created by Magic on 11-5-9.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "TestLua.h"
#import "HNActorFactory.h"

@implementation TestLua

#if USE_APPLICATION_UNIT_TEST     // all code under test is in the iPhone Application

- (void) testAppDelegate {
    
    id yourApplicationDelegate = [[UIApplication sharedApplication] delegate];
    STAssertNotNil(yourApplicationDelegate, @"UIApplication failed to find the AppDelegate");
    
}

#else                           // all code under test must be linked into the Unit Test bundle

-(void) setUp
{
	
}

-(void) tearDown
{
	
}

- (void) testMath {
    
    STAssertTrue((1+1)==2, @"Compiler isn't feeling well today :-(" );
    
}

- (void) testLua {
	
	/*有问题 好像lua 必须在运行时测试
	id a = [[HNActorFactory sharedActorFactory] newActorWithClassName:@"RoyalGriffin"];
	id b = [[HNActorFactory sharedActorFactory] newActorWithClassName:@"Halberdier"];
	
	
	
	id logicCenter = [[NSClassFromString(@"LogicCenter") alloc] init];
	
	[logicCenter actorA:a attackActorB:b];*/
    STAssertTrue((1+1)==2, @"Compiler isn't feeling well today :-(" );
    
}

#endif


@end
